﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TimbreRecognition.Recognition.Teacher.Kohenen
{
    public class KohenenTeacherFactory
    {
        public static IKohenenTeacher createTeacher(KohenenTeachers teacher)
        {
            IKohenenTeacher kohenenTeacher;

            if (teacher == KohenenTeachers.ITERATION)
            {
                kohenenTeacher = new IterationKohenenTeacher();
            }
            else if (teacher == KohenenTeachers.BATCH)
            {
                kohenenTeacher = new BatchKohenenTeacher();
            }
            else
            {
                throw new ArgumentException("Wrong teacher type " + teacher);
            }

            return kohenenTeacher;
        }
    }
}
